import java.util.Scanner;

/**
 * Created by Salted fish
 * Description:
 * User: 24539
 * Date：2021-07-30
 * Time: 13:38
 */
public class Test5 {
    public static void main(String[] args) {
        Scanner sn = new Scanner(System.in);
        System.out.println("输入三个数");
        int a= sn.nextInt();
        int b= sn.nextInt();
        int c= sn.nextInt();
        System.out.println("最大的数是："+max3(a,b,c));
    }
    public static int max3(int a,int b,int c) {
        int x=max2(a, b);
        return max2(x,c);
    }
    public static int max2(int a,int b) {
        return a>b ? a:b;
    }
}
